package com.springcloud.sc.ucpv5.client.commondata.idl.sj3;


/**
 * Generated from IDL struct "DataChange".
 *
 * @author JacORB IDL compiler V 2.3-beta-2, 14-Oct-2006
 * @version generated at 2014-10-29 11:48:54
 */

public final class DataChangeHelper
{
	private static org.omg.CORBA.TypeCode _type = null;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			_type = org.omg.CORBA.ORB.init().create_struct_tc(com.springcloud.sc.ucpv5.client.commondata.idl.sj3.DataChangeHelper.id(),"DataChange",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("changeType", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("changeMode", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("changeNumber", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("dataContent", com.springcloud.sc.ucpv5.client.commondata.idl.sj3.MsgBodyHelper.type(), null),new org.omg.CORBA.StructMember("keep1", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep2", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep3", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep4", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep5", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep6", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep7", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep8", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep9", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep10", org.omg.CORBA.ORB.init().create_string_tc(0), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final com.springcloud.sc.ucpv5.client.commondata.idl.sj3.DataChange s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static com.springcloud.sc.ucpv5.client.commondata.idl.sj3.DataChange extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:com/client/idl/sj3/DataChange:1.0";
	}
	public static com.springcloud.sc.ucpv5.client.commondata.idl.sj3.DataChange read (final org.omg.CORBA.portable.InputStream in)
	{
		com.springcloud.sc.ucpv5.client.commondata.idl.sj3.DataChange result = new com.springcloud.sc.ucpv5.client.commondata.idl.sj3.DataChange();
		result.changeType=in.read_long();
		result.changeMode=in.read_long();
		result.changeNumber=in.read_string();
		result.dataContent = com.springcloud.sc.ucpv5.client.commondata.idl.sj3.MsgBodyHelper.read(in);
		result.keep1=in.read_string();
		result.keep2=in.read_string();
		result.keep3=in.read_string();
		result.keep4=in.read_string();
		result.keep5=in.read_string();
		result.keep6=in.read_string();
		result.keep7=in.read_string();
		result.keep8=in.read_string();
		result.keep9=in.read_string();
		result.keep10=in.read_string();
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final com.springcloud.sc.ucpv5.client.commondata.idl.sj3.DataChange s)
	{
		out.write_long(s.changeType);
		out.write_long(s.changeMode);
		out.write_string(s.changeNumber);
		com.springcloud.sc.ucpv5.client.commondata.idl.sj3.MsgBodyHelper.write(out,s.dataContent);
		out.write_string(s.keep1);
		out.write_string(s.keep2);
		out.write_string(s.keep3);
		out.write_string(s.keep4);
		out.write_string(s.keep5);
		out.write_string(s.keep6);
		out.write_string(s.keep7);
		out.write_string(s.keep8);
		out.write_string(s.keep9);
		out.write_string(s.keep10);
	}
}
